

// import {word ,msg} from '~/demo'
// import imgs2 from '@/assets/images/img2.jpg'

// console.log("这是 自定义脚手架的主入口文件 -react");

// var app=document.getElementById("app")

// app.innerHTML +=`<h2>wh2201 - daydayup</h2>`
//                 +`<h2>wh2201 - 天道酬勤</h2>`
//                 +`<h2>wh2201 - 人人拿一个满意的 offer</h2>`
//                 +`<h2>${word}</h2>`
//                 +`<h2>${msg}</h2>`
//                 +`<img src='${imgs2}' />`


import "./styles/index.scss"

import MyRoot from "./views"  //导入组件
import React from "react"
import ReactDOM, {createRoot} from 'react-dom/client'

// ReactDOM.render(根组件,根节点)
// ReactDOM.render(<MyRoot/>, document.getElementById("app"))   //react 17的版本

const root = createRoot(document.getElementById("app"))  //react 18的版本写法
root.render(<MyRoot/>)